package com.google.android.gms.internal;

import android.content.Context;
import android.support.annotation.Nullable;
import com.google.android.gms.ads.internal.zzbt;
import com.google.android.gms.common.api.Releasable;
import com.google.android.gms.common.internal.Hide;
import java.lang.ref.WeakReference;
import java.util.Map;

@Hide
@zzabh
public abstract class zzany implements Releasable {
    protected Context mContext;
    private String zzddt;
    private WeakReference<zzann> zzdop;

    public zzany(zzann zzann) {
        this.mContext = zzann.getContext();
        this.zzddt = zzbt.zzel().zzl(this.mContext, zzann.zztl().zzcu);
        this.zzdop = new WeakReference<>(zzann);
    }

    /* access modifiers changed from: private */
    public final void zza(String str, Map<String, String> map) {
        zzann zzann = (zzann) this.zzdop.get();
        if (zzann != null) {
            zzann.zza(str, map);
        }
    }

    /* access modifiers changed from: private */
    /* JADX WARNING: Can't fix incorrect switch cases order */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static java.lang.String zzdd(java.lang.String r2) {
        /*
            java.lang.String r0 = "internal"
            int r1 = r2.hashCode()
            switch(r1) {
                case -1396664534: goto L_0x0067;
                case -1347010958: goto L_0x005d;
                case -918817863: goto L_0x0053;
                case -659376217: goto L_0x0049;
                case -642208130: goto L_0x003f;
                case -354048396: goto L_0x0034;
                case -32082395: goto L_0x0029;
                case 96784904: goto L_0x001f;
                case 580119100: goto L_0x0015;
                case 725497484: goto L_0x000b;
                default: goto L_0x0009;
            }
        L_0x0009:
            goto L_0x0071
        L_0x000b:
            java.lang.String r1 = "noCacheDir"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 4
            goto L_0x0072
        L_0x0015:
            java.lang.String r1 = "expireFailed"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 5
            goto L_0x0072
        L_0x001f:
            java.lang.String r1 = "error"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 0
            goto L_0x0072
        L_0x0029:
            java.lang.String r1 = "externalAbort"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 9
            goto L_0x0072
        L_0x0034:
            java.lang.String r1 = "sizeExceeded"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 8
            goto L_0x0072
        L_0x003f:
            java.lang.String r1 = "playerFailed"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 1
            goto L_0x0072
        L_0x0049:
            java.lang.String r1 = "contentLengthMissing"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 3
            goto L_0x0072
        L_0x0053:
            java.lang.String r1 = "downloadTimeout"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 7
            goto L_0x0072
        L_0x005d:
            java.lang.String r1 = "inProgress"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 2
            goto L_0x0072
        L_0x0067:
            java.lang.String r1 = "badUrl"
            boolean r2 = r2.equals(r1)
            if (r2 == 0) goto L_0x0071
            r2 = 6
            goto L_0x0072
        L_0x0071:
            r2 = -1
        L_0x0072:
            switch(r2) {
                case 0: goto L_0x007f;
                case 1: goto L_0x007f;
                case 2: goto L_0x007f;
                case 3: goto L_0x007f;
                case 4: goto L_0x007c;
                case 5: goto L_0x007c;
                case 6: goto L_0x0079;
                case 7: goto L_0x0079;
                case 8: goto L_0x0076;
                case 9: goto L_0x0076;
                default: goto L_0x0075;
            }
        L_0x0075:
            return r0
        L_0x0076:
            java.lang.String r0 = "policy"
            return r0
        L_0x0079:
            java.lang.String r0 = "network"
            return r0
        L_0x007c:
            java.lang.String r0 = "io"
            return r0
        L_0x007f:
            java.lang.String r0 = "internal"
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.internal.zzany.zzdd(java.lang.String):java.lang.String");
    }

    public abstract void abort();

    public void release() {
    }

    /* access modifiers changed from: protected */
    public final void zza(String str, String str2, int i) {
        zzako.zzaju.post(new zzaoa(this, str, str2, i));
    }

    public final void zza(String str, String str2, String str3, @Nullable String str4) {
        zzako.zzaju.post(new zzaob(this, str, str2, str3, str4));
    }

    public abstract boolean zzdc(String str);
}
